<script>
export default {
name: "redirect",
  created() {
    const {params, query} = this.$route
    this.$router.replace({path: '/' + params.path, query})
  },
  render: function (r){
    return r()
  }
}
</script>